= header_tag('修改密码qw')
.row
  = form_for(@admin, url: update_password_cpanel_admins_path, method: :patch, html: { class: 'form-horizontal', method: 'patch' }) do |f|
    = render partial: 'shared/cpanel/error_messages', locals: { object: @admin }
    .form-group
      = label_tag 'admin_old_password', '旧密码', class: 'control-label col-md-2 no-padding-right'
      .col-md-4
        = password_field_tag 'admin[old_password]', '', class: 'form-control'
    .form-group
      = f.label :password, class: 'control-label col-md-2 no-padding-right'
      .col-md-4
        = f.password_field :password, class: 'form-control'
    .form-group
      = f.label :password_confirmation, class: 'control-label col-md-2 no-padding-right'
      .col-md-4
        = f.password_field :password_confirmation, class: 'form-control'
    .form-group
      .col-md-offset-2
        = f.submit '提交', class: 'btn btn-primary btn-outline', data: { disable_with: '请稍候...' }
